How to add a command button that opens a form.





In the Form Design view, use the 'Command Button' button on the Toolbox. Click on the form to insert the command button. Follow the steps for the wizard, selecting 'Form Operations' and 'Open Form' from the list boxes.

    1) If the Database window is not activated, activate the Database window.
    2) Choose the 'Forms' tab in the Database window.
    < Forms tab >
    3) Select the desired form from the list box. (The selected form is highlighted.)
    4) Choose the 'Design' button. (The selected form appears in Design view, and the floating Toolbox appears.)
    5) Make sure the 'Control Wizard' button located in the Toolbox is depressed.
    < Control Wizard depressed and selected bound control >
    6) Choose the 'Command Button' button on the Toolbox.
    7) Position the mouse pointer on the form to select the location for the command button.
    8) Click the location for the command button on the form. (The Command Button Wizard appears.)
    9) Select 'Form Operations' from the 'Categories' list box.
    10) Select 'Open Form' from the 'Actions' list box.
    < Command Button Open Form >
    11) Choose the 'Next' button. (The next step of the wizard appears.)
    12) Select the desired form to open in the 'What form would you like the command button to open?' list box.
    13) Choose the 'Next' button. (The next step of the wizard appears.)
    14) Do one of the following:

      a) Select the 'Open the form and find specific data to display' radio button.

        1] Choose the 'Next' button. (The next step of the wizard appears.)
        2] Select the fields that contain matching data in the lists.
        < Command Button filter fields >
        3] Choose the ' < - > ' button to match the fields from the left and right lists.
        4] Choose the 'Next' button. (The next step of the wizard appears.)

      b) Select the 'Open the form and show all records' radio button.

    15) To enter text as the command button, do the following:

      a) Select the 'Text' button.
      b) Enter the text that will appear on the command button in the 'Text' box.

    16) To select a picture as the command button, do the following:

      a) Select the 'Picture' button.
      b) Select the name of the picture from the 'Picture' list box.

    17) Choose the 'Next' button. (The next step of the wizard appears.)
    18) Enter the name for the command button in the 'What do you want to name the button?' box.
    19) Choose the 'Finish' button. (The command button appears on the form.)
    20) Select the 'File' menu and select 'Save' to save the form.


Knowledge-Pak Desktop Suite (TM) Edition 5
Copyright (c) 1994-1997 by ServiceWare Inc. Subject to the terms set forth in the end-user license agreement. All rights reserved.



2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.